package com.zhw.mybatis.xml;

import com.zhw.mybatis.entity.Orders;
import com.zhw.mybatis.mapping.MappedData;
import com.zhw.mybatis.mapping.MappedStatement;

public class OrdersMapperXml extends MappedData {

    public OrdersMapperXml(){
        mapData.put(getNameSpace(),
                new MappedStatement("selectOrders","select orders.id,orders.order_num, orders.goods_id,orders.add_time from  orders WHERE orders.goods_id = #{goods_id}  limit 0,1",Orders.class));
    }

    @Override
    protected String getNameSpace() {
        return "com.zhw.mybatis.mapper.OrdersMapper";
    }
}
